//
//  FKSlidOffset.swift
//  FireKnowledge
//
//  Created by 杨伟毅 on 2019/4/19.
//  Copyright © 2019 wely. All rights reserved.
//

import Foundation
import UIKit

extension UITableView{
    func insetVC(_ tableView:UIScrollView,_ baseVC:UIViewController) -> Void {
        if #available(iOS 11.0, *) {
            tableView.contentInsetAdjustmentBehavior = .never
        }else{
            baseVC.automaticallyAdjustsScrollViewInsets = false
        }
    }
}
